package com.vhall.component.dao.vote;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vhall.component.entity.vote.VotesEntity;
import com.vhall.component.entity.vote.vo.VotesListReqVO;
import com.vhall.component.entity.vote.vo.VotesListRspVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 投票信息表 Mapper 接口
 * </p>
 *
 * @author moutory
 * @since 2021-07-06
 */
@Mapper
@Repository
public interface VotesMapper extends BaseMapper<VotesEntity> {

    /**
     * 控制台和房间查询投票列表
     *
     * @param vo
     * @return
     */
    int listCount(VotesListReqVO vo);

    /**
     * 控制台和房间查询投票列表
     *
     * @param vo
     * @return
     */
    List<VotesListRspVO> list(VotesListReqVO vo);

}
